package Huihu.src.Duoxiancheng;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        MyThraed myThraed=new MyThraed();
        Thread thread=new Thread(myThraed);
        thread.start();
        thread.join();
        int j=2;
        System.out.println(j);
    }
}

class MyThraed implements Runnable{
    int i;
    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        i=100;
        System.out.println(i);
    }
}
